
package com.v1.video.activity;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.ImageView;
import android.widget.TextView;

import com.v1.video.R;

public class AboutUserProtocolActivity extends BaseActivity {

    private final String TAG = "AboutUserProtocolActivity";

    private AboutUserProtocolActivity instance;
//    setText(Html.fromHtml("<u>"+"hahaha"+"</u>"));
       
    /**标题*/
    TextView text_title;
    /**返回按钮*/
    private ImageView view_btn_return;
    private WebView webView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about_user_protocol);
        instance = this;
    }

    @Override
    protected void initView() {
        // TODO Auto-generated method stub
        view_btn_return = (ImageView)findViewById(R.id.iv_result);
//        text_title = (TextView)findViewById(R.id.tv_title);
        webView = (WebView)findViewById(R.id.web_view);        
    }

    @Override
    protected void initData() {
    	String act_type = getIntent().getStringExtra("activity");
    	String web_url = getIntent().getStringExtra("link");
        // TODO Auto-generated method stub
//    	if(act_type.equals("about_us")){
//    		text_title.setText("关于我们");
//    	}else if(act_type.equals("user_xieyi")){
//    		text_title.setText(R.string.about_title_users_protocol);
//    	}
        
        webView.loadUrl(web_url);
    }

    @Override
    protected void setListener() {
        // TODO Auto-generated method stub
        findViewById(R.id.lay_result).setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub
                finish();
            }
        });
    }

    @Override
    public void onBackPressed() {
        // TODO Auto-generated method stub
        super.onBackPressed();
        finish();
    }

}
